<!--河南星辰软件科技有限公司
@copyright Copyright (c) 2010~2022 All rights reserved.
-->
<template>
  <div>
    <el-form ref="form" :rules="rules" label-width="100px" id="mvcfm">
      <div class="form-unit">
        <span class="mvc-title-left"> 审批历史 </span>
      </div>
      <div>
      </div> 任务名称 <div class="el-select">
        <el-input v-model="empty" />
      </div> 办理人ID <div class="el-select">
        <el-input v-model="empty" />
      </div>
      <el-button @click="gotoPage(''+vueparams+'')" type='primary' size="mini"><i class='fa fa-search'></i>搜索</el-button>
      <el-button @click="gotoPage(''+vueparams+'')" type='warning' size="mini"><i class='fa fa-refresh'></i>重置</el-button>
      <el-table :data="pageList" v-loading="loading">
        <el-table-column label="任务名称" prop="activity.activityName">
        </el-table-column>
        <el-table-column label="处理人ID" prop="activity.assignee">
        </el-table-column>
        <el-table-column label="处理人" prop="activity.assigneeName">
        </el-table-column>
        <el-table-column label="审批意见" prop="comment">
        </el-table-column>
        <el-table-column label="开始时间" prop="activity.startTime">
        </el-table-column>
        <el-table-column label="结束时间" prop="activity.endTime">
        </el-table-column>
        <el-table-column label="耗时" prop="activity.durationInMillis">
        </el-table-column>
      </el-table>
    </el-form>
  </div>
</template>
<script>
  import request from '@/utils/request'
  export default {
    name: 'historyList',
    components: {},
    props: ['popparams'],
    data() {
      return {
        vueparams: this.getVUEParams(""),
        loading: true,
        pageList: [],
        pageSize: 10,
        total: null,
        rules: {}
      }
    },
    created() {
      this.getPage(1);
    },
    updated() {},
    mounted() {},
    methods: {
      getPage(page) {
        this.loading = true;
        request({
          method: 'get',
          url: '/xcapi/VUEAction/oa/process/HistoryAction/listHistory?' + this.vueparams,
          params: {
            pageNo: page
          }
        }).then(data => {
          this.loading = false;
          this.pageList = data.rows;
          this.total = data.total;
        })
      },
    },
  }
</script>
